import { onLoad } from "@dcloudio/uni-app";
import { reactive } from "vue";
export function useRouter<T extends Object>(): { params: T}{
    const params = reactive<Record<string, unknown>>({})
    onLoad((options = {}) => {
        Object.keys(options).map(key => params[key] = options[key])
    })
    return { params: params as unknown as T }
}
export default useRouter